package com.yxym.override_.Exercise;

public class Student extends Person{
    private char id;
    private char score;
    public Student(String name, int age, char id, char score) {
        super(name, age);
        this.id = id;
        this.score = score;
    }

    public char getId() {
        return id;
    }

    public void setId(char id) {
        this.id = id;
    }

    public char getScore() {
        return score;
    }

    public void setScore(char score) {
        this.score = score;
    }
    public String say(){
        return super.say() +"\t"+ "我的id：" + id + "\t" + "我的分数为：" + score;
    }
}
